package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Permission;
import cn.wolfcode.crm.domain.Role;
import cn.wolfcode.crm.query.QueryObject;
import cn.wolfcode.crm.util.PageResult;

import java.util.List;

/**
 * Created by ALIENWARE on 2018/7/5.
 */
public interface IPermissionService {
    int insert(Permission entity);
    List<String> selectAllName();
    List<Permission> selectAll();
    PageResult query(QueryObject qo);

    void reload();
    //查询角色,通过角色的id
    List<Permission> queryByRoleId(Long id);

    void insertPermissionsId(Role id);

    List<Long> selectPermissionByRoleId(Long roleId);

    List<Long> listIdsByOperatorId(Long operatorId);
}